package com.antrice.website.controller.home;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.antrice.website.controller.BaseController;


/** 
 * @ClassName: HomeController 
 * @Description: 网站首页
 * @author  wangtq 
 * @date 2016年6月1日 上午11:00
 *  
 */

@Controller
@RequestMapping("home")
public class HomeController extends BaseController {
   
    
    
    /**
	 * 主页展示
	 */
	@RequestMapping("index")
    public ModelAndView index(HttpServletRequest httpRequest, HttpServletResponse response) {
		ModelAndView mav = getModelAndView("home/index",httpRequest);
		mav.addObject("name", "测试问题");
        return mav;
    }
	
	 /**
	 * 企业文化
	 */
	@RequestMapping("enterprise")
    public ModelAndView enterprise(HttpServletRequest httpRequest, HttpServletResponse response) {
		ModelAndView mav = getModelAndView("home/enterprise",httpRequest);
        return mav;
    }
	 /**
	 * 关于我们
	 */
	@RequestMapping("about")
   public ModelAndView about(HttpServletRequest httpRequest, HttpServletResponse response) {
		ModelAndView mav = getModelAndView("home/about",httpRequest);
       return mav;
   }	
	 /**
	 * 帮助中心
	 */
	@RequestMapping("help")
    public ModelAndView help(HttpServletRequest httpRequest, HttpServletResponse response) {
		ModelAndView mav = getModelAndView("home/help",httpRequest);
        return mav;
    }	
	 /**
	 * 手机客户端
	 */
	@RequestMapping("appclient")
    public ModelAndView appClient(HttpServletRequest httpRequest, HttpServletResponse response) {
		ModelAndView mav = getModelAndView("home/appClient",httpRequest);
		return mav;
    }   
	
	 /**
	 * 常见问题
	 */
	@RequestMapping("question")
    public ModelAndView question(HttpServletRequest httpRequest, HttpServletResponse response) {
		ModelAndView mav = getModelAndView("home/question",httpRequest);
        return mav;
    }    
    
	 /**
	 * 常见问题
	 */
	@RequestMapping("error")
   public ModelAndView error(HttpServletRequest httpRequest, HttpServletResponse response) {
		ModelAndView mav = getModelAndView("error/errorIndex",httpRequest);
       return mav;
   }  
	
}
